<?php

namespace common\validate;

class TaskRelation extends BaseValidate
{
    // 验证规则
    protected $rule = [];

    // GetTaskUpstreamByTaskIds 验证场景定义
    public function sceneGetTaskUpstreamByTaskIds()
    {
        return $this->append('param', 'require')
            ->append('param.filter', 'array')
            ->append('param.project_id', 'require');
    }

    // GetTaskWorkOrderStepCategoryUpstreamTaskIds 验证场景定义
    public function sceneGetTaskWorkOrderStepCategoryUpstreamTaskIds()
    {
        return $this->append('param', 'require')
            ->append('param.step_category_id', 'require|array')
            ->append('param.project_id', 'require');
    }

}
